package model

import (
	"gorm.io/plugin/soft_delete"
)

type UserExtend struct {
	Id        int64                 `json:"id" gorm:"primaryKey"`
	UserId    int64                 `json:"userId" gorm:"unique_index;not null"`
	Nickname  string                `json:"nickname" gorm:"comment:'昵称'"`
	Email     string                `json:"email" gorm:"comment:'邮箱'"`
	CityCode  string                `json:"cityCode"`
	CreatedAt int64                 `json:"created_at" gorm:"autoUpdateTime:milli"`
	UpdatedAt int64                 `json:"updated_at" gorm:"autoUpdateTime:milli"`
	DeletedAt soft_delete.DeletedAt `json:"-"`
}

func (r *UserExtend) TableName() string {
	return "sys_user_extend"
}
